<template>
	<div class="header-like">
		<!-- 顶部标签 -->
		<div class="like-top">
			<span class="iconfont head">&#xe699;</span>
			<label class="like-til">猜你喜欢</label>
		</div>
		<!-- 列表 -->
		<ul>
			<li class="like-list border-buttom" v-for="(item,index) in likeList" :key="index">
				<img :src="item.hotURL" />
				<div class="list-right">
					<p>{{item.hottil}}</p>
					<b class="iconfont">&#xe812;&#xe812;&#xe812;&#xe812;&#xe812;</b>
					<span>{{item.sro}}</span>条评论
					<div class="like-end">
						<label>￥{{item.price}}</label>起
						<span>{{item.git}}</span>
					</div>
				</div>
			</li>
		</ul>
	</div>
</template>

<script >
	export default {
		props:['likeList'],//接收父组件传递的数组
		data() {
			return {
				
			}
		}
	}
</script>

<style scoped>
	.header-like{
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		margin-top: 0.4rem;
		overflow: hidden;
	}
	.like-top{
		line-height: 1rem;
		padding-left: 0.2rem;
	}
	.head{
		color: red !important;
		font-size: 0.4rem;
		padding-right: 0.1rem;
	}
	.like-til{
		font-size:0.4rem ;
		font-weight: bold;
		color: #212121;
	}
	.header-like ul{
		width: 100%;
	}
	.like-list{
		width: 100%;
		height: 2rem;
		padding: 0.2rem;
		/* float: left; */
		overflow: hidden;
		display: flex;
	}
	.like-list li{
		/* border-bottom: 0.1rem solid #CCCCCC; */
		position: relative;
	}
	.like-list img{
		width: 2rem;
		height: 2rem;
		display: inline-block;
	}
	.list-right{
		display: inline-block;
		padding-left: 0.2rem;
		line-height: 0.65rem;
		flex: 1;
	}
	.list-right p{
		color: #212121;
		font-size: 0.34rem;
		font-weight: bold;
	}
	.list-right b{
		color: gold;
		padding-right: 0.2rem;
		font-size: 0.32rem;
	}
	.list-right span{
		font-size: 0.32rem;
	}
	.like-end label{
		color: orangered;
		font-size: 0.48rem;
	}
	.like-end span{
		font-size: 0.32rem;
		/* padding-left:2rem; */
		float: right;
		padding-right: 0.25rem;
	}
</style>
